// 游戏配置文件

// 棋子类型枚举
export const PIECE_TYPE = {
  KING: 'king',     // 将/帅
  ADVISOR: 'advisor', // 士/仕
  ELEPHANT: 'elephant', // 象/相
  HORSE: 'horse',   // 马
  CHARIOT: 'chariot', // 车
  CANNON: 'cannon',  // 炮
  PAWN: 'pawn'      // 兵/卒
}

// 玩家阵营
export const CAMP = {
  RED: 'red',
  BLACK: 'black'
}

// 游戏难度等级
export const DIFFICULTY = {
  EASY: 'easy',
  MEDIUM: 'medium',
  HARD: 'hard'
}

// 默认AI模型配置
export const DEFAULT_AI_MODEL = 'douban' // 可选值：'douban' 或 'deepseek'

// 初始棋盘布局
export const INITIAL_BOARD = {
  red: [
    { type: PIECE_TYPE.CHARIOT, position: [0, 0] },
    { type: PIECE_TYPE.HORSE, position: [0, 1] },
    { type: PIECE_TYPE.ELEPHANT, position: [0, 2] },
    { type: PIECE_TYPE.ADVISOR, position: [0, 3] },
    { type: PIECE_TYPE.KING, position: [0, 4] },
    { type: PIECE_TYPE.ADVISOR, position: [0, 5] },
    { type: PIECE_TYPE.ELEPHANT, position: [0, 6] },
    { type: PIECE_TYPE.HORSE, position: [0, 7] },
    { type: PIECE_TYPE.CHARIOT, position: [0, 8] },
    { type: PIECE_TYPE.CANNON, position: [2, 1] },
    { type: PIECE_TYPE.CANNON, position: [2, 7] },
    { type: PIECE_TYPE.PAWN, position: [3, 0] },
    { type: PIECE_TYPE.PAWN, position: [3, 2] },
    { type: PIECE_TYPE.PAWN, position: [3, 4] },
    { type: PIECE_TYPE.PAWN, position: [3, 6] },
    { type: PIECE_TYPE.PAWN, position: [3, 8] }
  ],
  black: [
    { type: PIECE_TYPE.CHARIOT, position: [9, 0] },
    { type: PIECE_TYPE.HORSE, position: [9, 1] },
    { type: PIECE_TYPE.ELEPHANT, position: [9, 2] },
    { type: PIECE_TYPE.ADVISOR, position: [9, 3] },
    { type: PIECE_TYPE.KING, position: [9, 4] },
    { type: PIECE_TYPE.ADVISOR, position: [9, 5] },
    { type: PIECE_TYPE.ELEPHANT, position: [9, 6] },
    { type: PIECE_TYPE.HORSE, position: [9, 7] },
    { type: PIECE_TYPE.CHARIOT, position: [9, 8] },
    { type: PIECE_TYPE.CANNON, position: [7, 1] },
    { type: PIECE_TYPE.CANNON, position: [7, 7] },
    { type: PIECE_TYPE.PAWN, position: [6, 0] },
    { type: PIECE_TYPE.PAWN, position: [6, 2] },
    { type: PIECE_TYPE.PAWN, position: [6, 4] },
    { type: PIECE_TYPE.PAWN, position: [6, 6] },
    { type: PIECE_TYPE.PAWN, position: [6, 8] }
  ]
}

// 棋盘尺寸
export const BOARD_CONFIG = {
  ROWS: 9,
  COLS: 8,
  CELL_SIZE: 60 // 每个格子的大小（像素）
}